Integrand size = 24, antiderivative size = 57 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {i \text {arctanh}(\cosh (c+d x))}{a d}-\frac {2 \coth (c+d x)}{a d}+\frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {2847, 2827, 3852, 8, 3855} \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {i \text {arctanh}(\cosh (c+d x))}{a d}-\frac {2 \coth (c+d x)}{a d}+\frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))} \]
[In]
[Out]
Rule 8
Rule 2827
Rule 2847
Rule 3852
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))}-\frac {\int \text {csch}^2(c+d x) (-2 a+i a \sinh (c+d x)) \, dx}{a^2} \\ & = \frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))}-\frac {i \int \text {csch}(c+d x) \, dx}{a}+\frac {2 \int \text {csch}^2(c+d x) \, dx}{a} \\ & = \frac {i \text {arctanh}(\cosh (c+d x))}{a d}+\frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))}-\frac {(2 i) \text {Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{a d} \\ & = \frac {i \text {arctanh}(\cosh (c+d x))}{a d}-\frac {2 \coth (c+d x)}{a d}+\frac {\coth (c+d x)}{d (a+i a \sinh (c+d x))} \\ \end{align*}
Time = 0.16 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.07 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {\text {sech}(c+d x) \left (i-i \text {arctanh}\left (\sqrt {\cosh ^2(c+d x)}\right ) \sqrt {\cosh ^2(c+d x)}+\text {csch}(c+d x)+2 \sinh (c+d x)\right )}{a d} \]
[In]
[Out]
Time = 1.60 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.11
method | result | size |
derivativedivides | \(\frac {-\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {4}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-2 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d a}\) | \(63\) |
default | \(\frac {-\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {4}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-2 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d a}\) | \(63\) |
parallelrisch | \(\frac {\left (2 i \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-i \coth \left (\frac {d x}{2}+\frac {c}{2}\right )-6 i \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{2 \left (i-\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) d a}\) | \(86\) |
risch | \(-\frac {2 i \left (-i {\mathrm e}^{d x +c}+{\mathrm e}^{2 d x +2 c}-2\right )}{\left ({\mathrm e}^{2 d x +2 c}-1\right ) \left ({\mathrm e}^{d x +c}-i\right ) a d}+\frac {i \ln \left ({\mathrm e}^{d x +c}+1\right )}{a d}-\frac {i \ln \left ({\mathrm e}^{d x +c}-1\right )}{a d}\) | \(91\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 146 vs. \(2 (53) = 106\).
Time = 0.26 (sec) , antiderivative size = 146, normalized size of antiderivative = 2.56 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {{\left (i \, e^{\left (3 \, d x + 3 \, c\right )} + e^{\left (2 \, d x + 2 \, c\right )} - i \, e^{\left (d x + c\right )} - 1\right )} \log \left (e^{\left (d x + c\right )} + 1\right ) + {\left (-i \, e^{\left (3 \, d x + 3 \, c\right )} - e^{\left (2 \, d x + 2 \, c\right )} + i \, e^{\left (d x + c\right )} + 1\right )} \log \left (e^{\left (d x + c\right )} - 1\right ) - 2 i \, e^{\left (2 \, d x + 2 \, c\right )} - 2 \, e^{\left (d x + c\right )} + 4 i}{a d e^{\left (3 \, d x + 3 \, c\right )} - i \, a d e^{\left (2 \, d x + 2 \, c\right )} - a d e^{\left (d x + c\right )} + i \, a d} \]
[In]
[Out]
\[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=- \frac {i \int \frac {\operatorname {csch}^{2}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx}{a} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 109 vs. \(2 (53) = 106\).
Time = 0.20 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.91 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {2 \, {\left (e^{\left (-d x - c\right )} - i \, e^{\left (-2 \, d x - 2 \, c\right )} + 2 i\right )}}{{\left (a e^{\left (-d x - c\right )} - i \, a e^{\left (-2 \, d x - 2 \, c\right )} - a e^{\left (-3 \, d x - 3 \, c\right )} + i \, a\right )} d} + \frac {i \, \log \left (e^{\left (-d x - c\right )} + 1\right )}{a d} - \frac {i \, \log \left (e^{\left (-d x - c\right )} - 1\right )}{a d} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.58 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {-\frac {i \, \log \left (e^{\left (d x + c\right )} + 1\right )}{a} + \frac {i \, \log \left (e^{\left (d x + c\right )} - 1\right )}{a} - \frac {2 \, {\left (e^{\left (2 \, d x + 2 \, c\right )} - i \, e^{\left (d x + c\right )} - 2\right )}}{a {\left (i \, e^{\left (3 \, d x + 3 \, c\right )} + e^{\left (2 \, d x + 2 \, c\right )} - i \, e^{\left (d x + c\right )} - 1\right )}}}{d} \]
[In]
[Out]
Time = 2.25 (sec) , antiderivative size = 122, normalized size of antiderivative = 2.14 \[ \int \frac {\text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {\frac {2\,{\mathrm {e}}^{c+d\,x}}{a\,d}-\frac {4{}\mathrm {i}}{a\,d}+\frac {{\mathrm {e}}^{2\,c+2\,d\,x}\,2{}\mathrm {i}}{a\,d}}{{\mathrm {e}}^{c+d\,x}+{\mathrm {e}}^{2\,c+2\,d\,x}\,1{}\mathrm {i}-{\mathrm {e}}^{3\,c+3\,d\,x}-\mathrm {i}}-\frac {\ln \left ({\mathrm {e}}^{c+d\,x}\,2{}\mathrm {i}-2{}\mathrm {i}\right )\,1{}\mathrm {i}}{a\,d}+\frac {\ln \left ({\mathrm {e}}^{c+d\,x}\,2{}\mathrm {i}+2{}\mathrm {i}\right )\,1{}\mathrm {i}}{a\,d} \]
[In]
[Out]